package com.ruoyi.pos.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * exchange_order对象 _exchange_order
 * 
 * @author ruoyi
 * @date 2021-05-21
 */
public class ExchangeOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id标识 */
    private Long id;

    /** 关联的order id */
    @Excel(name = "关联的order id")
    private Long orderId;

    /** 换货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "换货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date exchangeTime;

    /** 商店id */
    @Excel(name = "商店id")
    private Long shopid;

    /** 关联的操作员id */
    @Excel(name = "关联的操作员id")
    private Long opid;

    @Excel(name = "换货商品")
    private List<ExchangeItem> exchangeItemList;

    public List<ExchangeItem> getExchangeItemList() {
        return exchangeItemList;
    }

    public void setExchangeItemList(List<ExchangeItem> exchangeItemList) {
        this.exchangeItemList = exchangeItemList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setExchangeTime(Date exchangeTime) 
    {
        this.exchangeTime = exchangeTime;
    }

    public Date getExchangeTime() 
    {
        return exchangeTime;
    }
    public void setShopid(Long shopid) 
    {
        this.shopid = shopid;
    }

    public Long getShopid() 
    {
        return shopid;
    }
    public void setOpid(Long opid) 
    {
        this.opid = opid;
    }

    public Long getOpid() 
    {
        return opid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderId", getOrderId())
                .append("exchangeTime", getExchangeTime())
                .append("shopid", getShopid())
                .append("opid", getOpid())
                .append("exchangeItem", getExchangeItemList())
                .toString();
    }
}
